/*
    The achievement of the Integer

    Copyright (C) 2012-2013  Yang Long

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
#include "integer.h"
#include "math.h"
/*
 * _THE_LENGTH_OF_UNSIGNED_INT is the max length which
 * the unsigned int can represent with :)
 */
#define _THE_LENGTH_OF_UNSIGNED_INT 10
const unsigned int TheDataSizeOfIntCell = (unsigned int)pow(10.0,_THE_LENGTH_OF_UNSIGNED_INT);

Integer::Integer()
{
    data = new IntCell();
    data->data = 0;
    data->next = null;
    length = 1;
}

Integer::Integer(char *string)
{
    data = new IntCell();
    data->data = 0;
    data->next = null;

}

Integer::Integer(int a)
{
    data = new int(a);
}

Integer::Integer(double a)
{
    data = new int((int)a);
}

Integer::~Integer()
{
    delete data;
}

Integer Integer::operator +(Integer a, Integer b)
{
}

Integer Integer::operator -(Integer a, Integer b)
{
}

